package com.ahp.bean;

import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Module entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Module implements java.io.Serializable {
	
	public static final String TYPE_MODULE_DEFAULT = "default_module";
	public static final String TYPE_MODULE_USER = "user_module";

	/**
	 * 任务
	 */
	public static final String SESSION_TASK = "task";
	/**
	 * 模板
	 */
	public static final String SESSION_MODULE = "module";
	
	/**
	 * 评估对象List<Integer>
	 */
	public static final String SESSION_OBJECT = "object";
	/**
	 * 一级因子值List<String[id,val]>
	 */
	public static final String SESSION_LEVEL_ONE_VALUE = "levelOneValue";
	/**
	 * 一二级计算结果二级Map<id,val>
	 */
	public static final String SESSION_LEVEL_TOW_MULTI = "levelTwoMul";

	// Fields

	private Integer modId;
	private User user;
	private String name;
	private String type;
	private Set<Factor> factors = new HashSet(0);

	// Constructors

	/** default constructor */
	public Module() {
	}

	/** full constructor */
	public Module(User user, String name, String type, Set<Factor> factors) {
		this.user = user;
		this.name = name;
		this.type = type;
		this.factors = factors;
	}

	// Property accessors

	public Integer getModId() {
		return this.modId;
	}

	public void setModId(Integer modId) {
		this.modId = modId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Set<Factor> getFactors() {
		return factors;
	}

	public void setFactors(Set<Factor> factors) {
		this.factors = factors;
	}

}